<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%-- JSTL表达式（判断，循环，输出） --%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%-- 方法表达式（字符串截取，替换） --%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<div class="reservation-list">
    <c:forEach var="activity" items="${pageBean.list}" varStatus="status">
        <section class="reservation">
            <a href="<%=basePath%>activity/getActivityDetails/${activity.activityId}">
                <div class="link-box transition">
                    <span>活动详情</span>
                </div>
                <div class="pic-box transition" >
                    <img src="${activity.activityPic}">
                </div>
                <div class="content text-center">
                    <div class="title">
                        ${activity.activityName}<br>
                        <span>${activity.activityTitle}</span>
                    </div>
                    <div class="price">￥ ${activity.activityPrice}</div>
                </div>
            </a>
        </section>
    </c:forEach>
    <c:if test="${pageBean.totalPage <= pageBean.currentPage}">
        <script>
            $("#loadActivitys").html('没有更多了').css("color","#ccc");
        </script>
    </c:if>
</div>
